-- 返回时间格式(xx:xx:xx),传入时间(秒)
function GFunc_ChangeToTimeFormat(ftime)
    local tsc = ftime%60
    local tmi = (ftime-tsc)/60
    --print("tscLenght:",string.len(string.format("%d",tsc)))
    --print("tmiLenght:",string.len(string.format("%d",tmi)))
    
    local rstr = string.format("%d",tmi)
    if string.len(string.format("%d",tmi)) == 1 then
        rstr = string.format("0%d",tmi)
    end
    --print("fine1",rstr,string.format(":%d",tsc))
    if string.len(string.format("%d",tsc)) == 1 then
        rstr = table.concat({rstr,string.format(":0%d",tsc)})
    else
        rstr = table.concat({rstr,string.format(":%d",tsc)})
    end
    
    --print("fin2e",rstr)
    return rstr
end